-- puppet
-- created by panyl
-- 召唤兽：钢铁傀儡

return {
    fetchInitData = function(classId)
        local pet = ME.user:getActivePet();
        local magic = ME.user:getMagic();
        local hp;

        if table.indexOf({ 10, 22, }, pet.classId) ~= -1 then
            hp = 120 + math.modf(3 * magic);
        else
            hp = 100 + math.modf(2 * magic);
        end

        return { 
            ["hp"] = hp,
            ["max_hp"] = hp, 
        };
    end,
};
